package cn.whitecao.contentcenter.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * <p>
 * RocketMQ事务日志表
 * </p>
 *
 * @author root
 * @since 2019-10-12
 */
@TableName("rocketmq_transaction_log")
public class RocketmqTransactionLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 事务id
     */
    @TableField("transaction_Id")
    private String transactionId;

    /**
     * 日志
     */
    private String log;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getTransactionId() {
        return transactionId;
    }

    public void setTransactionId(String transactionId) {
        this.transactionId = transactionId;
    }
    public String getLog() {
        return log;
    }

    public void setLog(String log) {
        this.log = log;
    }

    @Override
    public String toString() {
        return "RocketmqTransactionLog{" +
        "id=" + id +
        ", transactionId=" + transactionId +
        ", log=" + log +
        "}";
    }
}
